/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eSales.com.BL.sales;

import eSales.com.BL.sales.LotsList.SaleItem;
import java.util.List;

/**
 *
 * @author Home
 */
public class LotsListHtmlInstance {
    
    
    private LotsList mModel;
    
    public LotsListHtmlInstance(LotsList model) {
        mModel = model;
        
    }
    @Override
    public String toString() {
        return generateHtmlTags();
    }

    private String generateHtmlTags() {
        StringBuilder strBuilder = new StringBuilder();
        List<SaleItem> list = mModel.getSaleItem();
        strBuilder.append("<h1>");
        for(SaleItem item : list) {
            strBuilder.append(item.getName()).append("</br>");
        }
        strBuilder.append("</h1>");
        return strBuilder.toString();
    }
    
}
